package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_dingdan;

import cn.com.api.mapper.ApiT_dingdanMapper;

import cn.com.api.service.ApiT_dingdanService;

/**
 * 
 **/
@Service
public class T_dingdanServiceImplBase {
	@Autowired
	private ApiT_dingdanMapper apiT_dingdanMapper;

	// 根据id获取
	public ApiT_dingdan findT_dingdanById(Integer id) {
		ApiT_dingdan t_dingdan = apiT_dingdanMapper.findT_dingdanById(id);
		return t_dingdan;
	}

	// 查看数据集
	public List<ApiT_dingdan> findT_dingdans() {
		List<ApiT_dingdan> t_dingdans = apiT_dingdanMapper.findT_dingdans();
		return t_dingdans;
	}

	// 添加
	public int insertT_dingdan(ApiT_dingdan t_dingdan) {
		int ret_I = apiT_dingdanMapper.insertT_dingdan(t_dingdan);
		return ret_I;
	}

	// 修改
	public int updateT_dingdan(ApiT_dingdan t_dingdan) {
		int ret_I = apiT_dingdanMapper.updateT_dingdan(t_dingdan);
		return ret_I;
	}

	// 删除
	public int deleteT_dingdan(Integer id) {
		int ret_I = apiT_dingdanMapper.deleteT_dingdan(id);
		return ret_I;
	}

}
